const jobAPI = {
  queryJobList: param => {
    return $http.post(`${window.RPConfig.mgt}/job/page/query`, param).then(response => response.data);
  },
  addJob: param => {
    return $http.post(`${window.RPConfig.mgt}/job/add`, param).then(response => response.data);
  },
  getJobDetail: id => {
    return $http.post(`${window.RPConfig.mgt}/job/getById?id=${id}`).then(response => response.data);
  },
  updateJob: param => {
    return $http.post(`${window.RPConfig.mgt}/job/update`, param).then(response => response.data);
  }
};
export default jobAPI;
